package org.jeecg.modules.zcgl.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.system.base.entity.DelFlagBaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: 应付款项
 * @Author: jeecg-boot
 * @Date:   2020-06-30
 * @Version: V1.0
 */
@ApiModel(value="zcgl_payables_info对象", description="应付款项")
@Data
@TableName("zcgl_payables_info")
public class PayablesInfo extends DelFlagBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	/**付款编号*/
	@Excel(name = "付款编号", width = 15)
    @ApiModelProperty(value = "付款编号")
    private String payablesNo;
	/**合同信息*/
	@Excel(name = "合同信息", width = 15, dictTable = "zcgl_lease_contract_info", dicText = "contract_num", dicCode = "id")
    @Dict(dictTable = "zcgl_lease_contract_info", dicText = "contract_num", dicCode = "id")
    @ApiModelProperty(value = "合同信息")
    private String leaseContractId;
	/**资产信息*/
	@Excel(name = "资产信息", width = 15, dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id", pullDown = false)
    @Dict(dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id")
    @ApiModelProperty(value = "资产信息")
    private String assetId;
    /**资产明细*/
    @Excel(name = "资产明细", width = 15, dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id", pullDown = false)
    @Dict(dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id")
    @ApiModelProperty(value = "资产明细")
    private String assetSubIds;
	/**客户信息*/
	@Excel(name = "客户信息", width = 15, dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ';', `name`, phone )", dicCode = "id", pullDown = false)
    @Dict(dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ' ', `name`, phone )", dicCode = "id")
    @ApiModelProperty(value = "客户信息")
    private String customerId;
	/**付款金额*/
	@Excel(name = "付款金额", width = 15)
    @ApiModelProperty(value = "付款金额")
    private BigDecimal totalMoney;
	/**付款状态*/
	@Excel(name = "付款状态", width = 15, dicCode = "payment_status")
    @Dict(dicCode = "payment_status")
    @ApiModelProperty(value = "付款状态")
    private Integer payStatus;
	/**付款方式*/
	@Excel(name = "付款方式", width = 15, dicCode = "pay_type")
    @Dict(dicCode = "pay_type")
    @ApiModelProperty(value = "付款方式")
    private Integer paymentType;
	/**付款日期*/
	@Excel(name = "付款日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "付款日期")
    private java.util.Date paymentDate;
	/**付款人*/
	@Excel(name = "付款人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @ApiModelProperty(value = "付款人")
    private String paymentBy;
	/**付款说明*/
	@Excel(name = "付款说明", width = 15)
    @ApiModelProperty(value = "付款说明")
    private String paymentRemark;

    /**收款人*/
    @Excel(name = "收款人", width = 15, dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ';', `name`, phone )", dicCode = "id")
    @Dict(dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ' ', `name`, phone )", dicCode = "id")
    @ApiModelProperty(value = "收款人")
    private String payeeBy;
}
